home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #3
/
Amiga Plus CD - 1998 - No. 3.iso
/
pd
/
spiele
/
progammon2.3
/
dicetests
/
dicetest1
< prev
next >
Wrap
Text File
|
1997-12-08
|
1KB
|
31 lines
A pair of dice are being rolled 108 000 times to check for randomness.
This test takes about 33 seconds on a 68882 @ 33mhz. Each combination
should occur 1/36th of the time (i.e. 3000).
Test time = 32.94 seconds.
1 2 3 4 5 6
1 2929 2957 2985 3013 3064 2954
2 3012 3079 2982 3061 3009 3103
3 2968 3057 3120 2970 3040 2945
4 2983 3041 2998 2974 2951 3024
5 3081 3051 2962 2971 3001 2885
6 2978 2968 2962 3006 2982 2934
The same two times in a row. (i.e. 1/36 * 108 000)
Theory = 3000 Actual = 3077
Opposite but still the same two times in a row.
Theory = 3000 Actual = 3030
The same three times in a row. (i.e. 1/1296 * 108 000)
Theory = 83 Actual = 78
Doubles. (i.e. 1/6 of 108 000)
Theory = 18 000 Actual = 18037
Total of all rolls including doubles. (i.e. 8.167 * 108 000)
Theory = 882 000 Actual = 880786